#include<bits/stdc++.h>

using namespace std;

inline bool even(int x) {
    return x % 2 == 0;
}

int mul(int x, int y) {
    return x * y;
}

int main() {
    vector<int> v = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10};
    cout << accumulate(v.begin(), v.end(), 0) << endl;//sum(v[i])
    cout << accumulate(v.begin(), v.end(), 1, mul) << endl;//mul(v[i])
    cout << accumulate(v.begin(), v.end(), INT_MIN, [](int x, int y) {
        return x > y ? x : y;
    }) << endl;//max(v[i])
}